package com.yuqiao.read.design.adapter;

import java.util.LinkedList;
import java.util.List;

public class DuckTestDrive {
    public static void main(String[] args) {
        MallardDuck md = new MallardDuck();
        WildTurkey wt = new WildTurkey();
        Duck turkeyAdapter = new TurkeyAdapter(wt);
        turkeyAdapter.quack();
        turkeyAdapter.fly();
        testDuck(md);
        testDuck(turkeyAdapter);
        List list = new LinkedList();
//
        double a = 12.0;
        double b = 12.99;
        double c = 12.36;
        System.out.println("args = [" + Math.round(a) + "]");
        System.out.println("args = [" + Math.round(b) + "]");
//        System.out.println("args = [" + Math.round(c) + "]");
//        System.out.println("args = [" + Math. + "]");
    }

    static void testDuck(Duck duck){
        duck.quack();
        duck.fly();
    }
}
